<?php


namespace App\Common\RabbitMQ;


class Delayed extends AbstractConsumer
{
    // todo 死信过期后删除  不同延迟时间用不同 路由键队列交换器
    protected   $exName             = 'delayed.exchange.4';
    public      $quBindRoutingKey   = 'delayed.routing.4';
    protected   $quName             = 'delayed.queue.4';

    protected   $exType             = AMQP_EX_TYPE_DIRECT;
    protected   $declareEx          = true;
    protected   $declareQu          = true;

    public $quArguments = [
        'x-message-ttl'=>10000,
        'x-dead-letter-exchange' => 'dlx.exchange',
        'x-dead-letter-routing-key' => 'dlx.routing.key',
    ];
}
